package io.renren.modules.cs.service.impl;

import io.renren.common.annotation.DataFilter;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.cs.dao.ZrzyhghjDao;
import io.renren.modules.cs.entity.ZrzyhghjEntity;
import io.renren.modules.cs.service.ZrzyhghjService;


@Service("zrzyhghjService")
public class ZrzyhghjServiceImpl extends ServiceImpl<ZrzyhghjDao, ZrzyhghjEntity> implements ZrzyhghjService {

    @Override
    @DataFilter(subDept = true,user =false,deptId = "zb_name",userId = "zb_level",tableAlias = "t1")
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ZrzyhghjEntity> page = this.page(
                new Query<ZrzyhghjEntity>().getPage(params),
                new QueryWrapper<ZrzyhghjEntity>()
        );

        return new PageUtils(page);
    }

}
